package mylibrary.outofmemory;

import java.util.*;

/**
 * VM Args：-XX:PermSize=10M -XX:MaxPermSize=10M
 * @author gaoshuai
 *
 */

public class RuntimeConstantPoolOOM {

	public static void main(String[] args) {
		
		List list = new ArrayList();
		int i = 0; 
		while(true) {
			list.add(String.valueOf(i++).intern());
		}
	}
}
